package com.flyqiu.common.crypto.sm;

import org.bouncycastle.crypto.engines.SM2Engine;

public interface BaseSmKeyModel {
    /**
     * 获取公钥
     *
     * @return String
     */
    String getPrivateKey();

    /**
     * 获取私钥
     *
     * @return String
     */
    String getPublicKey();

    /**
     * 密钥模式
     * 不写默认就是C1C3C2
     * @return
     */
    default SM2Engine.Mode getMode() {
        return SM2Engine.Mode.C1C3C2;
    }
}
